#ifndef I2C_LIBRARY_H
#define I2C_LIBRARY_H

#include <php.h>

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CSetup, 0)
    ZEND_ARG_INFO(0, devId)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CWrite, 0)
    ZEND_ARG_INFO(0, fd)
    ZEND_ARG_INFO(0, data)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CRead, 0)
    ZEND_ARG_INFO(0, fd)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CWriteReg8, 0)
    ZEND_ARG_INFO(0, fd)
    ZEND_ARG_INFO(0, reg)
    ZEND_ARG_INFO(0, data)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CWriteReg16, 0)
    ZEND_ARG_INFO(0, fd)
    ZEND_ARG_INFO(0, reg)
    ZEND_ARG_INFO(0, data)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CReadReg8, 0)
    ZEND_ARG_INFO(0, fd)
    ZEND_ARG_INFO(0, reg)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_wiringPiI2CReadReg16, 0)
    ZEND_ARG_INFO(0, fd)
    ZEND_ARG_INFO(0, reg)
ZEND_END_ARG_INFO()


PHP_FUNCTION(wiringPiI2CSetup);
PHP_FUNCTION(wiringPiI2CRead);
PHP_FUNCTION(wiringPiI2CWrite);
PHP_FUNCTION(wiringPiI2CWriteReg8);
PHP_FUNCTION(wiringPiI2CWriteReg16);
PHP_FUNCTION(wiringPiI2CReadReg8);
PHP_FUNCTION(wiringPiI2CReadReg16);

#endif